package com.yg.ssm.index.dao;

import com.yg.ssm.index.model.SysUserModel;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Created by Administrator on 2016/8/29.
 */
public interface LoginDao {
    @Select("SELECT  uid,username,PASSWORD,username_zh,create_time,last_login_time FROM yg_user WHERE username=#{username} ")
    public SysUserModel querySysUserModel(String username);

    @Update("update yg_user set last_login_time=#{last_login_time} where uid=#{uid}")
    public void UpUserLoginTime(SysUserModel um);
}
